<?php
namespace app\serversms\validate;
use \app\manage\validate\BaseValidate;

class Verify extends BaseValidate
{
    
	protected $rule =   [
        'code_id' =>['integer','gt'=>0],
        'mobile'=>['regex'=>'/^1[3|4|5|7|8]\d{9}$/'],
        'sms_info'=>['array','length'=>2],
        'token' => ['length'=>32],
        'type' => ['length'=>'2,25'],
        'text'=>['min'=>5],
        'apikey'=>['length'=>32],
        'verify'=>['integer','egt'=>100000,'elt'=>999999],
    ];

    protected $message  =   [

    ];

    protected $scene = [
        'smsInfo' => ['text','apikey'],
    ];

}